package com.labichaoka.chaoka.ui.account;

import com.labichaoka.chaoka.entity.BaseResponse;
import com.labichaoka.chaoka.entity.LoginRequest;
import com.labichaoka.chaoka.entity.LoginResponse;
import com.labichaoka.chaoka.entity.SendCodeRequest;

/**
 * Created by ruan on 2018/7/31.
 */

public interface LoginInteractor {
    interface OnFinishedListener{
        void onGetCodeSuccess(BaseResponse response);
        void onGetCodeFailed();

        void onLoginSuccess(LoginResponse response);
        void onLoginFailed();

    }
    void getSmsCode(SendCodeRequest request, OnFinishedListener listener);

    void login(LoginRequest request,OnFinishedListener listener);
}
